
import config from "@/config"
import http from "@/utils/request"

export default {
    meeting: {
        getMyMeetingListForApp: {
            url: `${config.API_URL}/get/triple/getMyMeetingListForApp`,
            name: "获取移动端待办会议",
            get: async function (params) {
                return await http.get(this.url, params);
            }
        },
        getMyMeetingListForDesk: {
            url: `${config.API_URL}/get/triple/getMyMeetingListForDesk`,
            name: "获取桌面会议",
            get: async function () {
                return await http.get(this.url);
            }
        },
        getMyMeetingList: {
            url: `${config.API_URL}/get/triple/getMyMeetingList`,
            name: "获取当前用户待参加会议",
            get: async function (params) {
                return await http.get(this.url, params);
            }
        },
        getNotNotesMeetingList: {
            url: `${config.API_URL}/get/triple/getNotNotesMeetingList`,
            name: "获取没有会议纪要的会议列表",
            get: async function () {
                return await http.get(this.url);
            }
        },
        getMeetingDeviceListName: {
            url: `${config.API_URL}/get/triple/getMeetingDeviceListName`,
            name: "获取设备名称列表",
            get: async function (params) {
                return await http.get(this.url, params);
            }
        },
        getApplyMeetingList: {
            url: `${config.API_URL}/get/triple/getApplyMeetingList`,
            name: "获取待审批的会议列表",
            get: async function (params) {
                return await http.get(this.url, params);
            }
        },
        getMyApplyMeetingList: {
            url: `${config.API_URL}/get/triple/getMyApplyMeetingList`,
            name: "获取个人历史会议申请记录",
            get: async function (params) {
                return await http.get(this.url, params);
            }
        },
        getMeetingListByDayStr: {
            url: `${config.API_URL}/get/triple/getMeetingListByDayStr`,
            name: "按日期获取当前会议室使用情况",
            get: async function (params) {
                return await http.get(this.url, params);
            }
        },
        getMeetingByDay: {
            url: `${config.API_URL}/get/triple/getMeetingByDay`,
            name: "获取禁用的会议时间段",
            get: async function (params) {
                return await http.get(this.url, params);
            }
        },
        getMyMeetingById: {
            url: `${config.API_URL}/get/triple/getMyMeetingById`,
            name: "获取会议详情",
            get: async function (params) {
                return await http.get(this.url, params);
            }
        },
        cancelMeeting: {
            url: `${config.API_URL}/set/triple/cancelMeeting`,
            name: "会议取消通知",
            post: async function (data, config = {}) {
                return await http.post(this.url, data, {
                    headers: {}
                });
            }
        },
        sendMeetingMsg: {
            url: `${config.API_URL}/set/triple/sendMeetingMsg`,
            name: "发送会议通知",
            post: async function (data, config = {}) {
                return await http.post(this.url, data, {
                    headers: {}
                });
            }
        },
        insertMeeting: {
            url: `${config.API_URL}/set/triple/insertMeeting`,
            name: "申请会议",
            post: async function (data, config = {}) {
                return await http.bigPost(this.url, data, {headers: {'Content-Type': 'multipart/form-data'}})
            }
        },
        deleteMeeting: {
            url: `${config.API_URL}/set/triple/deleteMeeting`,
            name: "撤销会议",
            post: async function (data, config = {}) {
                return await http.post(this.url, data, {
                    headers: {}
                });
            }
        },
        updateMeeting: {
            url: `${config.API_URL}/set/triple/updateMeeting`,
            name: "申请会议",
            post: async function (data, config = {}) {
                return await http.bigPost(this.url, data, {headers: {'Content-Type': 'multipart/form-data'}})
            }
        },
        insertMeetingNotes: {
            url: `${config.API_URL}/set/triple/insertMeetingNotes`,
            name: "添加会议记要",
            post: async function (data, config = {}) {
                return await http.bigPost(this.url, data, {headers: {'Content-Type': 'multipart/form-data'}})
            }
        },
        deleteMeetingNotes: {
            url: `${config.API_URL}/set/triple/deleteMeetingNotes`,
            name: "删除会议记要",
            post: async function (data, config = {}) {
                return await http.post(this.url, data, {
                    headers: {}
                });
            }
        },
        deleteMeetingNotesByIds: {
            url: `${config.API_URL}/set/triple/deleteMeetingNotesByIds`,
            name: "批量删除会议记要",
            post: async function (data, config = {}) {
                return await http.post(this.url, data, {
                    headers: {}
                });
            }
        },
        updateMeetingNotes: {
            url: `${config.API_URL}/set/triple/updateMeetingNotes`,
            name: "删除会议记要",
            post: async function (data, config = {}) {
                return await http.bigPost(this.url, data, {headers: {'Content-Type': 'multipart/form-data'}})
            }
        },
        getMyMeetingNotesListForDesk: {
            url: `${config.API_URL}/get/triple/getMyMeetingNotesListForDesk`,
            name: "获取桌面会议记要",
            get: async function () {
                return await http.get(this.url);
            }
        },
        queryMeetingNotesList: {
            url: `${config.API_URL}/get/triple/queryMeetingNotesList`,
            name: "会议记要查询",
            get: async function (params) {
                return await http.get(this.url, params);
            }
        },
        getMeetingNotesList: {
            url: `${config.API_URL}/get/triple/getMeetingNotesList`,
            name: "获取会议记要列表",
            get: async function (params) {
                return await http.get(this.url, params);
            }
        },
        insertMeetingDevice: {
            url: `${config.API_URL}/set/triple/insertMeetingDevice`,
            name: "添加会议室设备",
            post: async function (data, config = {}) {
                return await http.post(this.url, data, {
                    headers: {}
                });
            }
        },
        deleteMeetingDevice: {
            url: `${config.API_URL}/set/triple/deleteMeetingDevice`,
            name: "删除会议室设备",
            post: async function (data, config = {}) {
                return await http.post(this.url, data, {
                    headers: {}
                });
            }
        },
        updateMeetingDevice: {
            url: `${config.API_URL}/set/triple/updateMeetingDevice`,
            name: "更新设备信息",
            post: async function (data, config = {}) {
                return await http.post(this.url, data, {
                    headers: {}
                });
            }
        },
        getMeetingDeviceList: {
            url: `${config.API_URL}/get/triple/getMeetingDeviceList`,
            name: "获取会议设备列表",
            get: async function (params) {
                return await http.get(this.url, params);
            }
        },
        getMeetingRoomList: {
            url: `${config.API_URL}/get/triple/getMeetingRoomList`,
            name: "会议室列表",
            get: async function (params) {
                return await http.get(this.url, params);
            }
        },
        getCanUseDeviceList: {
            url: `${config.API_URL}/get/triple/getCanUseDeviceList`,
            name: "获取权限内可用的会议室设备",
            get: async function () {
                return await http.get(this.url);
            }
        },
        getMyApplyMeetingRoomList: {
            url: `${config.API_URL}/get/triple/getMyApplyMeetingRoomList`,
            name: "获取我历史申请过的会议室列表",
            get: async function () {
                return await http.get(this.url);
            }
        },
        getCanUseMeetingRoomList: {
            url: `${config.API_URL}/get/triple/getCanUseMeetingRoomList`,
            name: "获取当前用户可用的会议室",
            get: async function () {
                return await http.get(this.url);
            }
        },
        insertMeetingRoom: {
            url: `${config.API_URL}/set/triple/insertMeetingRoom`,
            name: "添加会议室",
            post: async function (data, config = {}) {
                return await http.post(this.url, data, {
                    headers: {}
                });
            }
        },
        updateMeetingRoom: {
            url: `${config.API_URL}/set/triple/updateMeetingRoom`,
            name: "更新会议室",
            post: async function (data, config = {}) {
                return await http.post(this.url, data, {
                    headers: {}
                });
            }
        },
        deleteMeetingRoom: {
            url: `${config.API_URL}/set/triple/deleteMeetingRoom`,
            name: "删除会议室",
            post: async function (data, config = {}) {
                return await http.post(this.url, data, {
                    headers: {}
                });
            }
        }

    },
}